<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: create by allen.qiang
// +----------------------------------------------------------------------

/**
 * 商品销量控制
 *
 * @package 	htdocs
 * @subpackage  quanliadmin
 * @author  	create by allen.qiang
 */
class pa_goodsSaleControl {

    public function execute(){

        if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {

            switch($_REQUEST['operFlg']) {

                case 1: //订单列表
                    $this->showGoodsSailControl();
                    break;


                default:
                    $this->toError('参数错误');
                    break;

            }
        } else {

            $this->toError('参数错误');

        }

    }

    /**
     * 转跳到错误页
     * @param string $msg 错误信息
     */
    private function toError( $msg ) {

        global $G_PGLOB;

        $G_PGLOB->display_error_page( $msg );

    }


    /*
     *
     *显示商品销量控制添加页面
     */
    public function showGoodsSailControl(){

        global $G_PGLOB;
        //城市
        $G_PGLOB->smarty->assign_by_ref('city', get_city());
        $G_PGLOB->smarty->display('goods/goodsSaleControl.tpl');
    }
}